package org.jypj.dev.model;

import java.util.ArrayList;
import java.util.List;

import org.jypj.dev.vo.UserTrainWork;

import com.google.gson.Gson;

/**
 * 车次表
 *
 * @author chenyu
 */
public class Train implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    private String id; // 主键
    private String roadId; // 所属交路
    private String code; // 车次代号
    private String startCity; // 起始城市
    private String endCity; // 结束城市
    private String startTime; // 开始时间
    private String endTime; // 结束时间
    private int sortOrder;// 在交路中的排序
    private String validDate;//工序生效时间
    private String modifyTime;//修改时间
    private String modifyUser;//修改人

    private String validDateShow;//用来显示用的工序生效时间
    private String roadName;
    private List<TrainWork> trainWorks = new ArrayList<>();

    private List<TrainStation> trainStations = new ArrayList<>();//车次站点信息

    private String trainType;//巡检监测的车型
    private List<UserTrainWork> userTrainWorks = new ArrayList<>();//用户工序进度纪录

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRoadId() {
        return this.roadId;
    }

    public void setRoadId(String roadId) {
        this.roadId = roadId;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStartCity() {
        return this.startCity;
    }

    public void setStartCity(String startCity) {
        this.startCity = startCity;
    }

    public String getEndCity() {
        return this.endCity;
    }

    public void setEndCity(String endCity) {
        this.endCity = endCity;
    }

    public String getStartTime() {
        return this.startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return this.endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public int getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(int sortOrder) {
        this.sortOrder = sortOrder;
    }

    public String getRoadName() {
        return roadName;
    }

    public void setRoadName(String roadName) {
        this.roadName = roadName;
    }

    public List<TrainWork> getTrainWorks() {
        return trainWorks;
    }

    public void setTrainWorks(List<TrainWork> trainWorks) {
        this.trainWorks = trainWorks;
    }

    public List<UserTrainWork> getUserTrainWorks() {
        return userTrainWorks;
    }

    public void setUserTrainWorks(List<UserTrainWork> userTrainWorks) {
        this.userTrainWorks = userTrainWorks;
    }

    public String getTrainType() {
        return trainType;
    }

    public void setTrainType(String trainType) {
        this.trainType = trainType;
    }

    public String getValidDate() {
        return validDate;
    }

    public void setValidDate(String validDate) {
        this.validDate = validDate;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser;
    }

    public String getValidDateShow() {
        return validDateShow;
    }

    public void setValidDateShow(String validDateShow) {
        this.validDateShow = validDateShow;
    }

    public List<TrainStation> getTrainStations() {
        return trainStations;
    }

    public void setTrainStations(List<TrainStation> trainStations) {
        this.trainStations = trainStations;
    }

    @Override
    public String toString() {
        Gson gson = new Gson();
        return gson.toJson(this);
    }
}